package com.home.security.browser.manager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * Description: 确保应用退出时能关闭后台线程
 * Created by 王大宸 on 2020-10-13 22:48
 * Created with IntelliJ IDEA.
 */
@Component
public class ShutdownManager {
    private static final Logger logger = LoggerFactory.getLogger("sys-user");

    /**
     * 推出服务,如果有服务关闭处理,例如登录缓存等
     */
    @PreDestroy
    public void destroy() {
        logger.info("======正在关闭服务======");
    }

}
